//
//  APPStoreApiManager.swift
//  AESOLAR_IOS
//
//  Created by Mr.Wang on 2019/9/27.
//  Copyright © 2019 Mr.Wang. All rights reserved.
//

import Moya

enum APPStoreApiManager {
    case checkUpdate
}

extension APPStoreApiManager: TargetType {
    
    var baseURL: URL {
        return URL.init(string: ("http://itunes.apple.com/cn/lookup?id=" + APPConfig.appStoreId))!
    }
    
    var path: String {
        return ""
    }
    
    var task: Task {
        return .requestPlain
    }
    
    var headers: [String : String]? {
        return ["Content-Type": "application/json"]
    }
}
